/**
*  \file compare.h
*
*  \brief standard compare function definition.
*
*  \author Michael J. Hohmann  michael.hohmann@linde-mh.de
*
*
*  This definition can be used for search find and locate functions.
*
*
*/
#ifndef COMPARE_H_INCLUDED
#define COMPARE_H_INCLUDED

/*================================================[ public includes  ]================================================*/
#include "../cfg/prj.h"

/*================================================[ public defines   ]================================================*/

/*================================================[ public datatypes ]================================================*/


enum compare
{
   compare_a_less_b    =-1,   /**< object a is greater than object b */
   compare_a_equals_b  = 0,   /**< object a equals object b          */
   compare_a_greater_b = 1    /**< object a is less than object b    */
};

typedef enum compare (*compare_function_t)( void const *a, void const *b );

/*================================================[ public variables ]================================================*/

/*================================================[ inline functions ]================================================*/

/*================================================[ public functions ]================================================*/

/*====================================================================================================================*/

#endif

/***********************************************************************************************************************
*                             Copyright 2018 Linde Material Handling. All rights reserved.                             *
***********************************************************************************************************************/
